package com.example.service.impl;

import com.example.mapper.DataSumMapper;
import com.example.service.DataSumService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Slf4j
@Service
public class DataSumServiceImpl  implements DataSumService {

    @Autowired
    private DataSumMapper dataSumMapper;
    @Override
    public Integer getArticleCount() {
        log.info("获取文章数量");
        return dataSumMapper.getArticleCount();
    }

    @Override
    public Integer getCategoryCount() {
        log.info("获取分类数量");
        return dataSumMapper.getCategoryCount();
    }

    @Override
    public Integer getAuthorCount() {
        log.info("获取作者数量");
        return dataSumMapper.getAuthorCount();
    }
}
